# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-xls-writer
pkgver=0.4.0
pkgrel=1
pkgdesc='A simple utility to format tabular data from python objects.'
url='https://pypi.org/project/xls_writer/#files'
arch=('any')
license=('custom:unknown')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/xls_writer-0.4.0.tar.gz")
sha512sums=('1a8ac45fa501e949acc737597375515bca00545dc55d545538da8fa41b7eadd7c489501e3e333f66ce39ea7851bd7dd52e3b413de25eb041fdba1b3387f0df6e')

build() {
  cd "xls_writer-$pkgver"

  python2 setup.py build
}

package() {
  cd "xls_writer-$pkgver"

  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

